<template>
    <div class="card-cell">
        <div class="card-cell-title">
            <i  v-show="icon" class="icon" :class="icon"></i>{{title}}
        </div>
        <slot/>
    </div>
</template>

<script>
    export default {
        name: "hl-card-cell",
        props:{
            title:{
                type:String,
                default:""
            },
            icon:{
                default:""
            }
        }
    }
</script>

<style scoped lang="less">
    .card-cell {
        margin-top: 12px;
        /*box-shadow: #e0e0e0 0 2px 4px 0;*/
        background: #ffffff;
        padding: 12px;
        &:last-child {
            margin-bottom: 12px;
        }
        .card-cell-title {
            font-size: 18px;
            font-weight: 500;
            color: #2c2c2c;
            display: flex;
            flex-direction: row;
            align-items: center;
            margin-bottom: 12px;
            .icon {
                font-size: 24px;
                color: #777777;
                margin-right: 12px;
            }
        }
    }

</style>